Skip to content

feat!: add server discovery and negotiation (SEP-2575)#973

Open
DaleSeo wants to merge 1 commit into
mainfrom
feat/sep-2575-discovery-negotiation
Open

feat!: add server discovery and negotiation (SEP-2575)#973
DaleSeo wants to merge 1 commit into
mainfrom
feat/sep-2575-discovery-negotiation

Conversation

@DaleSeo

@DaleSeo DaleSeo commented Jul 10, 2026

Copy link
Copy Markdown
Member

Motivation and Context

This implements the discovery and negotiation portion of SEP-2575. It adds the server/discover RPC, per-request protocol version negotiation, and typed unsupported-version errors so clients can learn a server's versions and capabilities without initializing a session, while preserving the legacy initialization flow.

How Has This Been Tested?

Add tests

Breaking Changes

Yes. DiscoverRequest and DiscoverResult add variants to the public exhaustive ClientRequest and ServerResult enums, so downstream exhaustive matches must handle the new variants.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

@DaleSeo DaleSeo self-assigned this Jul 10, 2026
@github-actions github-actions Bot added T-test Testing related changes T-config Configuration file changes T-core Core library changes T-handler Handler implementation changes T-model Model/data structure changes T-service Service layer changes T-transport Transport layer changes labels Jul 10, 2026
@DaleSeo DaleSeo linked an issue Jul 10, 2026 that may be closed by this pull request
6 tasks
@DaleSeo DaleSeo changed the title feat!: add server discovery and negotiation feat!: add server discovery and negotiation [SEP-2575] Jul 10, 2026
@DaleSeo DaleSeo changed the title feat!: add server discovery and negotiation [SEP-2575] feat!: add server discovery and negotiation (SEP-2575) Jul 10, 2026
@DaleSeo DaleSeo linked an issue Jul 10, 2026 that may be closed by this pull request
7 tasks
@DaleSeo DaleSeo marked this pull request as ready for review July 10, 2026 22:08
@DaleSeo DaleSeo requested a review from a team as a code owner July 10, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2026-07-28 T-config Configuration file changes T-core Core library changes T-handler Handler implementation changes T-model Model/data structure changes T-service Service layer changes T-test Testing related changes T-transport Transport layer changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement SEP-2575: Make MCP Stateless

1 participant